home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 722 / 722.xpi / chrome / noscript.jar / content / noscript / noscriptOverlay.xul < prev    next >
Extensible Markup Language  |  2010-02-12  |  14KB  |  391 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.     NoScript - a Firefox extension for whitelist driven safe JavaScript execution
  4.     Copyright (C) 2004-2009 Giorgio Maone - g.maone@informaction.com
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20. ***** END LICENSE BLOCK ***** -->
  21.  
  22.  
  23. <!DOCTYPE overlay [
  24. <!ENTITY % noscript SYSTEM "chrome://noscript/locale/noscript.dtd" >
  25. %noscript;
  26. <!ENTITY % noscriptFB  SYSTEM "chrome://noscript/content/en-US/noscript.dtd" >
  27. %noscriptFB;
  28. ]
  29. >
  30. <?xml-stylesheet href="chrome://noscript/skin/browser.css" type="text/css"?>
  31.  
  32. <overlay id="noscriptOverlay" 
  33.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  34.  
  35.   <script type="application/x-javascript" src="noscript.js" />
  36.   <script type="application/x-javascript" src="noscriptOverlay.js"/>
  37.   <script type="application/x-javascript" src="noscriptBM.js"/>
  38.   
  39.     
  40.   <stringbundleset id="stringbundleset">
  41.     <stringbundle id="noscript-strings" src="chrome://noscript/locale/noscript.properties" />
  42.     <stringbundle id="noscript-stringsFB" src="chrome://noscript/content/en-US/noscript.properties" />
  43.   </stringbundleset>
  44.  
  45.   
  46.  
  47.   <toolbarpalette id="BrowserToolbarPalette">
  48.     <toolbarbutton id="noscript-tbb" 
  49.       tooltiptext="NoScript" 
  50.       buttonstyle="pictures"
  51.       
  52.       class="toolbarbutton-1 noscript-no"
  53.       label="NoScript"
  54.       type="menu-button"
  55.       oncommand="if(event.target == this) if(noscriptOverlay.toggleCurrentPage()) event.preventDefault();"
  56.       oncontextmenu="noscriptOverlay.onContextMenu(event);"
  57.     >
  58.       <menupopup id="noscript-tbb-popup" onpopupshowing="noscriptOverlay.onMenuShowing(event)">
  59.         <menuseparator class="noscript-sep-insert" hidden="true" />
  60.         
  61.         <menuseparator class="noscript-sep-stop-untrusted"/>
  62.        
  63.         
  64.         <menuseparator class="noscript-sep-global" />
  65.         <menuitem class="menuitem-iconic" />
  66.         <menuseparator />
  67.         <menuitem id="noscript-options-tbb-menuitem"
  68.          label="&noscriptOptions;"
  69.          accesskey="&noscriptOptions.accesskey;"
  70.          oncommand="noscriptUtil.openOptionsDialog()"
  71.          tooltiptext="&noscriptOptionsLong;"
  72.          class="menuitem-iconic noscript-options"
  73.          />
  74.          <menuitem id="noscript-about-tbb-menuitem"
  75.            label="&noscriptAbout;"
  76.            tooltiptext="&noscriptAbout;"
  77.            oncommand="noscriptUtil.openAboutDialog()"
  78.          />
  79.       </menupopup>
  80.     
  81.     </toolbarbutton>
  82.     <toolbarbutton id="noscript-tbb-temp-page"
  83.       tooltiptext="&noscriptTempAllowPage;"
  84.       buttonstyle="pictures"
  85.       class="toolbarbutton-1 noscript-temp noscript-allow"
  86.       label="&noscriptTempAllowPage;"
  87.       oncommand="noscriptOverlay.allowPage()"
  88.     />
  89.     <toolbarbutton id="noscript-tbb-revoke-temp"
  90.       tooltiptext="&noscriptRevokeTemp;"
  91.       buttonstyle="pictures"
  92.       class="toolbarbutton-1 noscript-revoke-temp"
  93.       label="&noscriptRevokeTemp;"
  94.       oncommand="noscriptOverlay.revokeTemp()"
  95.     />
  96.   </toolbarpalette>
  97.   
  98.   <popup id="contentAreaContextMenu">
  99.     <menu id="noscript-context-menu" class="menu-iconic" label="NoScript" >
  100.       <menupopup id="noscript-context-popup" onpopupshowing="noscriptOverlay.onMenuShowing(event, true)">
  101.            <menuseparator class="noscript-sep-insert" hidden="true" />
  102.            <menuseparator class="noscript-sep-stop-untrusted"/>
  103.            <!-- dynamically inserted #noscript-menu-untrusted -->
  104.            
  105.            <menuseparator class="noscript-sep-global" />
  106.            <menuitem class="menuitem-iconic" />
  107.            
  108.            <menuseparator />
  109.            <menuitem id="noscript-options-ctx-menuitem"
  110.             label="&noscriptOptions;"
  111.             accesskey="&noscriptOptions.accesskey;"
  112.             oncommand="noscriptUtil.openOptionsDialog()"
  113.             tooltiptext="&noscriptOptionsLong;"
  114.             class="menuitem-iconic noscript-options"
  115.             />
  116.             <menuitem id="noscript-about-ctx-menuitem"
  117.               label="&noscriptAbout;"
  118.               tooltiptext="&noscriptAbout;"
  119.               oncommand="noscriptUtil.openAboutDialog()"
  120.             />
  121.       </menupopup>
  122.     </menu>
  123.   </popup>
  124.  
  125.   <window id="main-window">
  126.     <popupset id="mainPopupSet"></popupset><!-- SeaMonkey compatibility -->
  127.   </window>
  128.  
  129.   <popupset id="mainPopupSet">
  130.     <menupopup id="noscript-notify-popup" onpopupshowing="noscriptOverlay.onMenuShowing(event, true)">
  131.       <menuseparator />
  132.        <menuitem
  133.         id="noscript-options-menuitem"
  134.         label="&noscriptOptions;"
  135.         accesskey="&noscriptOptions.accesskey;"
  136.         oncommand="noscriptUtil.openOptionsDialog()"
  137.         tooltiptext="&noscriptOptionsLong;"
  138.         />
  139.        <menuitem id="noscript-mi-opt-notify"
  140.         label="&noscriptNotify;"
  141.         oncommand="noscriptOverlay.toggleMenuOpt(this)"
  142.         type="checkbox" autocheck="true"
  143.         />
  144.        <menuitem id="noscript-mi-opt-notify.bottom"
  145.           label="&noscriptNotify.bottom;"
  146.            oncommand="noscriptOverlay.toggleMenuOpt(this)"
  147.            type="checkbox" autocheck="true"
  148.         />
  149.        <menuitem id="noscript-mi-opt-sound"
  150.         label="&noscriptSound;"
  151.         oncommand="noscriptOverlay.toggleMenuOpt(this)"
  152.         type="checkbox" autocheck="true"
  153.         />
  154.      
  155.        <menuseparator class="noscript-sep-global" />
  156.        <menuitem class="menuitem-iconic" />
  157.        
  158.        
  159.        <menuitem id="noscript-revoke-temp-mi"
  160.           class="menuitem-iconic noscript-revoke-temp" 
  161.           label="&noscriptRevokeTemp;" accesskey="&noscriptRevokeTemp.accesskey;"
  162.           oncommand="noscriptOverlay.revokeTemp()"
  163.           />
  164.          <menuitem id="noscript-allow-page-mi"
  165.          class="menuitem-iconic noscript-allow" 
  166.          label="&noscriptAllowPage;" accesskey="&noscriptAllowPage.accesskey;"
  167.          oncommand="noscriptOverlay.allowPage(true)"
  168.          />
  169.         <menuitem id="noscript-temp-allow-page-mi"
  170.          class="menuitem-iconic noscript-temp noscript-allow" 
  171.          label="&noscriptTempAllowPage;" accesskey="&noscriptTempAllowPage.accesskey;"
  172.          oncommand="noscriptOverlay.allowPage()"
  173.          />
  174.          <menuitem id="noscript-temp2perm-mi"
  175.           class="menuitem-iconic noscript-allow" 
  176.           label="&noscriptTempToPerm;" accesskey="&noscriptTempToPerm.accesskey;"
  177.           oncommand="noscriptOverlay.tempToPerm()"
  178.           />
  179.        
  180.         <menu id="noscript-xss-menu" class="menu-iconic noscript-xss" 
  181.           onpopupshowing="event.stopPropagation()" 
  182.           onpopuphidden="event.stopPropagation()" 
  183.           label="&noscriptXss;">
  184.           <menupopup id="noscript-xss-menupopup"></menupopup>
  185.         </menu>
  186.        
  187.        
  188.        <menuseparator />
  189.        <menuseparator class="noscript-sep-untrusted"/>
  190.       
  191.        <menu id="noscript-menu-blocked-objects" class="menu-iconic noscript-plugin" 
  192.             onpopupshowing="event.stopPropagation()"
  193.             onpopuphidden="event.stopPropagation()" 
  194.             label="&noscriptBlockedObjects;">
  195.           <menupopup />
  196.        </menu>
  197.        
  198.        <menu id="noscript-menu-recent-blocked" class="menu-iconic" 
  199.             onpopupshowing="event.stopPropagation()"
  200.             onpopuphidden="event.stopPropagation()" 
  201.             label="&noscriptRecentBlocked;">
  202.           <menupopup>
  203.             <menuitem id="noscript-mi-recent-blocked-reset" 
  204.               label="&noscriptReset;"
  205.               class="menuitem-iconic"
  206.               accesskey="&noscriptReset.accesskey;"
  207.               oncommand="noscriptOverlay.ns.recentlyBlocked = []"
  208.              />
  209.           </menupopup>
  210.        </menu>
  211.        
  212.        <menu id="noscript-menu-untrusted" class="menu-iconic noscript-untrusted" 
  213.             onpopupshowing="event.stopPropagation()" 
  214.             onpopuphidden="event.stopPropagation()" 
  215.             label="&noscriptUntrusted;">
  216.           <menupopup />
  217.        </menu>
  218.        
  219.         
  220.       <menuseparator class="noscript-sep-insert"/>
  221.       <menuseparator class="noscript-sep-stop" hidden="true" />
  222.      </menupopup>
  223.      
  224.      
  225.      
  226.      <menupopup id="noscript-xss-popup" onpopupshowing="noscriptOverlay.prepareXssMenu(this)">
  227.         <menuitem id="noscript-mi-xss-console" 
  228.           label="&noscriptShowConsole;"
  229.           class="menuitem-iconic noscript-console"
  230.           accesskey="&noscriptShowConsole.accesskey;"
  231.           oncommand="noscriptUtil.openConsole()"
  232.          />
  233.          
  234.          <menuitem id="noscript-mi-xss-unsafe-reload"
  235.           class="menuitem-iconic noscript-unsafe-reload"
  236.           label="&noscriptUnsafeReload;"
  237.           accesskey="&noscriptUnsafeReload.accesskey;"
  238.           oncommand="noscriptOverlay.unsafeReload()"
  239.          />
  240.       
  241.          <menuseparator />
  242.          <menuitem id="noscript-mi-xss-opt-xss.notify"
  243.           label="&noscriptNotifications;"
  244.           type="checkbox" autocheck="true"
  245.           oncommand="noscriptOverlay.toggleMenuOpt(this)"
  246.          />
  247.         
  248.          <menuitem id="noscript-mi-xss-options" 
  249.           label="&noscriptOptions;"
  250.           class="menuitem-iconic noscript-options"
  251.           accesskey="&noscriptOptions.accesskey;"
  252.           oncommand="noscriptUtil.openXssOptions()"
  253.         />
  254.         
  255.         <menuseparator />
  256.         <menuitem id="noscript-mi-xss-faq" 
  257.           label="&noscriptXssFaq;"
  258.           class="menuitem-iconic noscript-faq"
  259.           accesskey="&noscriptXssFaq.accesskey;"
  260.           oncommand="noscriptUtil.openFaq('xss')"
  261.         />
  262.         <menuitem id="noscript-jar-opts" class="menuitem-iconic noscript-jar"
  263.           style="display: none !important" />
  264.         <menuitem id="noscript-abe-opts" class="menuitem-iconic noscript-abe"
  265.           style="display: none !important" />
  266.      </menupopup>
  267.      
  268.      
  269.      <menupopup id="noscript-sticky-ui"
  270.       onpopupshowing="noscriptOverlay.onMenuShowing(event)"
  271.       position="after_end"
  272.       >
  273.       
  274.       <menuseparator class="noscript-sep-insert" hidden="true" />
  275.       
  276.       <menuseparator class="noscript-sep-stop-untrusted"/>
  277.       <!-- dynamically inserted #noscript-menu-untrusted -->
  278.       
  279.       <menuseparator class="noscript-sep-global" />
  280.       <menuitem class="menuitem-iconic" />
  281.       <menuseparator />
  282.       <menuitem id="noscript-options-fn-tbb-menuitem"
  283.        label="&noscriptOptions;"
  284.        accesskey="&noscriptOptions.accesskey;"
  285.        oncommand="noscriptUtil.openOptionsDialog()"
  286.        tooltiptext="&noscriptOptionsLong;"
  287.        class="menuitem-iconic noscript-options"
  288.        />
  289.       
  290.     </menupopup>
  291.     
  292.    
  293.     
  294.     <menupopup id="noscript-status-popup"
  295.       onpopupshowing="noscriptOverlay.onMenuShowing(event)"
  296.       >
  297.       <menuitem
  298.           label="&noscriptAbout;"
  299.           tooltiptext="&noscriptAbout;"
  300.           oncommand="noscriptUtil.openAboutDialog()"
  301.         /> 
  302.       
  303.       <menuitem 
  304.         label="&noscriptOptions;"
  305.         accesskey="&noscriptOptions.accesskey;"
  306.         oncommand="noscriptUtil.openOptionsDialog()"
  307.         tooltiptext="&noscriptOptionsLong;"
  308.         />
  309.       
  310.       <menuseparator class="noscript-sep-global"/>
  311.       <menuitem class="menuitem-iconic" />
  312.           
  313.       <menuseparator id="noscript-sep-untrusted-status" class="noscript-sep-untrusted"/>
  314.  
  315.       <menuseparator class="noscript-sep-insert"/>
  316.       <menuseparator class="noscript-sep-stop" hidden="true" />
  317.     </menupopup>
  318.     
  319.      
  320.   </popupset>
  321.  
  322.  
  323.  
  324. <statusbar id="status-bar">
  325.   <statusbarpanel id="noscript-statusLabel"
  326.     insertbefore="statusbar-updates"
  327.     hidden="true"
  328.     context="noscript-statusLabel-popup"
  329.   >
  330.     <vbox flex="1" align="center" pack="center">
  331.       <label id="noscript-statusLabelValue"/>
  332.     </vbox>   
  333.   </statusbarpanel>
  334.   
  335.   <statusbarpanel id="noscript-statusIcon"
  336.     insertbefore="statusbar-updates"
  337.     class="statusbarpanel-menu-iconic noscript-no"
  338.     hidden="false"
  339.     oncontextmenu="noscriptOverlay.onContextMenu(event)"
  340.     />
  341.   
  342.    
  343.   <statusbarpanel id="noscript-statusXss" insertbefore="statusbar-updates"
  344.     class="statusbarpanel-menu-iconic noscript-xss"
  345.     hidden="true"
  346.     onclick="switch(event.button) { case 1: this.hidden = true; break; case 2: event.preventDefault(); this.firstChild.showPopup(); }"
  347.     >
  348.     <menupopup id="noscript-status-xss-popup" onpopupshowing="noscriptOverlay.prepareXssMenu(this, true)" />
  349.   </statusbarpanel>
  350.   
  351.   <statusbarpanel id="noscript-statusRedirect" insertbefore="statusbar-updates"
  352.     class="statusbarpanel-iconic noscript-redirect"
  353.     hidden="true" 
  354.     onclick="if(event.button == 1) this.hidden = true"
  355.     oncommand="noscriptOverlay.followMetaRefresh(event)"
  356.     />
  357.   
  358. </statusbar>
  359.  
  360.  
  361. <vbox id="browser-controls">
  362.   
  363.   <toolbarbutton
  364.       id="noscript-statusXss"
  365.       insertbefore="tool-actions"
  366.       tooltiptext="NoScript XSS" 
  367.       buttonstyle="pictures"
  368.       hidden="true"
  369.       class="noscript-xss browser-control-button"
  370.       label="XSS"
  371.       type="menu"
  372.    >
  373.     <menupopup id="noscript-status-xss-popup" class="noscript-menu" onpopupshowing="noscriptOverlay.prepareXssMenu(this, true)" />
  374.   </toolbarbutton>
  375.   
  376. </vbox>
  377.  
  378.  
  379. <toolbar id="toolbar-main">
  380.   <toolbarbutton id="noscript-tbb" class="noscript-no noscript-fennec" label="NoScript"
  381.     tooltiptext="NoScript" 
  382.     buttonstyle="pictures"
  383.     insertafter="tool-bookmarks"
  384.     popup="noscript-sticky-ui"
  385.   />
  386. </toolbar>
  387.  
  388.  
  389.  
  390. </overlay>
  391.